import 'package:flutter_simple_watch/base/base.dart';
import 'package:flutter_simple_watch/base/base_result.dart';
import 'package:flutter_simple_watch/news/model/we_chat_news_model.dart';

///@author aidenquan
/// Created by junlintianxia on 1/14/21.

class WeChatNewsViewModel extends BaseProvide {
  late WeChatNewsModel _model;
  BaseResult? baseResult;

  WeChatNewsViewModel() {
    _model =  WeChatNewsModel();
  }

  void getWeChatNews(String channel, int limitNum, bool isDown) async {
    baseResult = await _model.getWeChatNews(channel, limitNum, isDown);
    notify();
    print("getWeChatNews");
  }
}
